package Day2;

public class TextCare {
    public static void main(String[] args) {
        Care j = new Care();
        j.color = "黑色";
        j.price = 510.80;
        j.brand = "法拉利SF90";
        Engine p = new Engine();
        p.pai =3990.0;
        p.name = "三元锂电池";
        p.age =200;
        p.num =1000;
        j.p = p;
        j.Show();
        j.Firing();
        System.out.println("红灯");
        j.Stop();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println("绿灯");
        j.Whistle();


    }
}
